<%--
  Created by IntelliJ IDEA.
  User: SYG
  Date: 2018/4/24
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/js/Ajax.js"></script>
</head>
<body>
<input type="button" value="按键">
</body>
<script>
    ajax("${pageContext.request.contextPath}/getHtmlAjax",function (str) {
        alert(str)
    },function () {
            alert("失败");
    });
</script>
</html>
